<template>
  <router-view></router-view>
</template>
<script>
import { getZhongziConfig } from '../api/commom'
import { useStore } from 'vuex'

export default {
  name: 'execution-manage',
  created() {
    const store = useStore()
    if (Object.keys(store.state.projectCenter.ZhongziConfig).length == 0) {
      getZhongziConfig().then((res) => {
        store.state.projectCenter.ZhongziConfig = {
          appcode: res.data.data.appCode,
          username: res.data.data.username,
          password: res.data.data.password,
          pkdept: res.data.data.pkdept,
        }
        console.log(store.state.projectCenter.ZhongziConfig, 'store.state.projectCenter.ZhongziConfig')
      })
    }
  },
}
</script>
